package com.woniuxy.charin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * @TableName permission
 */
@TableName(value ="permission")
@Data
public class Permission implements Serializable {
    private Integer id;

    private Integer parentId;

    private String pname;

    private String url;

    private String code;

    private Integer level;

    private Integer sort;

    @TableField(exist = false)
    private List<Permission> children;

    private static final long serialVersionUID = 1L;
}